#ifndef WIDGET_BUY_H
#define WIDGET_BUY_H



#include "widget_human.h"
#include "widget_ai.h"
#include "widget_network.h"
#include "players.h"
#include "gui.h"



#include <queue>
#include <QtGui>
#include <QObject>



class human_widget;

class ai_widget;

class network_widget;



class buy_widget:public QWidget
{

	Q_OBJECT

public:

	buy_widget( QWidget* parent = 0, Qt::WindowFlags flags = 0 );
	
	QWidget* create_players_widget();


	QVBoxLayout* layout;

	human_widget* human_w;
	network_widget* network_w;
	ai_widget* ai_w;

	QWidget* current_widget;

	unsigned int current_player_num;
	player* current_player;


private:

	QPushButton* next_b;


private slots:
	
	void next();

};



#endif